package zut.edu.cn.concertticketmanagementsystem.exception;

import zut.edu.cn.concertticketmanagementsystem.enums.ResultEnum;

/**
 * Created with IntelliJ IDEA.
 * User: heroma
 * Date: 6/27/19
 * Time: 2:14 PM
 * Description: No Description
 */
public class SellException extends RuntimeException {
    private Integer code;

    public SellException(Integer code,String message) {
        super(message);
        this.code=code;
    }

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code=resultEnum.getCode();
    }
}